<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }

    iframe {
        width: 100%;
        height: 400px;
        border: 2px solid red;
    }

    a {
        color: #fff;
        text-decoration: none;
        font-size: 24px;
        text-align: center;
        line-height: 1;
        display: inline-block;
        padding: 0 10px;
        /* width: 90px; */
        height: 30px;
        background-color: red;
        margin-bottom: 1px;
    }
</style>

<body>
    <!-- 不加href属性 点击a标签直接显示a标签的内容 -->
    <a href="./tab1.html" target="ifr">骆驼祥子</a>
    <a href="./tab2.html" target="ifr">海燕</a>
    <a href="./tab3.html" target="ifr">秋天的怀念</a>
    <iframe src="./tab1.html" frameborder="0" name="ifr"></iframe>
    <script>

    </script>
</body>

</html>